package com.zys.el.user.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zys.el.core.service.impl.CrudServiceImpl;
import com.zys.el.user.po.Task;
import com.zys.el.user.service.ITaskService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TaskServiceImpl extends CrudServiceImpl<Task> implements ITaskService {
    @Override
    public List<Task> getTaskByTargetId(Long targetId) {
        QueryWrapper<Task> qw = new QueryWrapper<>();
        qw.eq("target_id_", targetId);
        return getBaseMapper().selectList(qw);
    }
}
